// TestCss.cs
//

using System.Collections;
using Nsb;

namespace UnitTestHarness
{
    public partial class TestBase
    {
        /// <summary>
        /// Dynamically generated css for test output elements.
        /// </summary>
        public static void TestingCss()
        {
            DynamicCss.AddCssRule("." + TestWrapperClass + " .tally", new Dictionary(
                "fontFamily", "calibri,helvetica,arial",
                "fontSize", "12pt",
                //"width", 100,
                "paddingLeft", 35,
                "color", "purple"
            ));

            DynamicCss.AddCssRule("." + TestOutputClass, new Dictionary(
                "fontFamily", "calibri,helvetica,arial",
                "fontSize", "10pt",
                "color", "#006",
                "clear", "both"
            ));

            DynamicCss.AddCssRule("." + TestOutputClass + " DL", new Dictionary(
                "margin", "2px 0 2px 0"
            ));

            DynamicCss.AddCssRule("." + TestOutputClass + " DT", new Dictionary(
                "fontFamily", "calibri,helvetica,arial",
                "fontSize", "11pt",
                "marginLeft", "5px"
            ));

            DynamicCss.AddCssRule("." + TestOutputClass + " SPAN.passed", new Dictionary(
                "color", "#080"
            ));

            DynamicCss.AddCssRule("." + TestOutputClass + " SPAN.failed", new Dictionary(
                "color", "#800"
            ));

            DynamicCss.AddCssRule("." + TestOutputClass + " DL.passed", new Dictionary(
                "backgroundColor", "#CFC"
            ));

            DynamicCss.AddCssRule("." + TestOutputClass + " DL.failed", new Dictionary(
                "backgroundColor", "#FCC"
            ));

            DynamicCss.AddCssRule("." + TestOutputClass + " DL.unknown", new Dictionary(
                "backgroundColor", "#FFC"
            ));

            DynamicCss.AddCssRule("." + TestOutputClass + " H2", new Dictionary(
                "margin", "8px 0 2px 0"
            ));
        }
    }
}
